
#include<AT89X52.H>
#define RCLK   P1_5 
#define SDATA  P1_6  
#define SCLK   P1_7 
char ch6[8]={0X80,0X40,0X20,0X10,0X08,0x04,0X02,0X01};
char ch7[8]={0xef,0xc0,0x81,0x09,0xc1,0xdd,0xd9,0xdd};
void SendData(unsigned char Xdata ,unsigned char Ydata)
{
   unsigned char i=0; 
   RCLK=0;
   for(i=0;i<8;i++)
    {
      SDATA=Xdata & 0x01;
      SCLK=1;
      SCLK=0;
      Xdata=Xdata>>1;
   }
   for(i=0;i<8;i++)                                                                                                                                                                                                                                                                                                                                                                                      
    {
      SDATA=Ydata & 0x01;
      SCLK=1;
      SCLK=0;
      Ydata=Ydata>>1;
   }
   RCLK=1;

}

void Func5()
{
   int i;
   for(i=0;i<8;i++)
   {
      SendData(ch7[i],ch6[i]); 
   } 
 
}